package com.example.springboot004mybatis.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/16 0:35
 * @version: v1.0
 */

@Data
@AllArgsConstructor()
@NoArgsConstructor
public class UserInfo {
    private Integer id;
    private String name;
    private Integer age;
    private String sex;
    // 一对多
    private List<UserImpression> userImpressions;

    public UserInfo(String name, Integer age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
